package com.linkzd.iot.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.linkzd.common.annotation.Excel;
import com.linkzd.common.core.domain.BaseEntity;

/**
 * 数据历史记录对象 device_data_log
 * 
 * @author ruoyi
 * @date 2024-05-28
 */
public class DeviceDataLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long dataId;

    /** 设备Id */
    @Excel(name = "设备Id")
    private Long deviceId;

    /** 设备数据 */
    @Excel(name = "设备数据")
    private String deviceData;

    /** 设备状态 */
    @Excel(name = "设备状态")
    private Integer deviceState;


    /** 设备编号 */
    @Excel(name = "设备编号")
    private String deviceCode;


    public DeviceDataLog() {
    }

    public DeviceDataLog(Long dataId, Long deviceId, String deviceData, Integer deviceState, String deviceCode) {
        this.dataId = dataId;
        this.deviceId = deviceId;
        this.deviceData = deviceData;
        this.deviceState = deviceState;
        this.deviceCode = deviceCode;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public void setDataId(Long dataId)
    {
        this.dataId = dataId;
    }

    public Long getDataId() 
    {
        return dataId;
    }
    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setDeviceData(String deviceData) 
    {
        this.deviceData = deviceData;
    }

    public String getDeviceData() 
    {
        return deviceData;
    }
    public void setDeviceState(Integer deviceState)
    {
        this.deviceState = deviceState;
    }

    public Integer getDeviceState()
    {
        return deviceState;
    }

    @Override
    public String toString() {
        return "DeviceDataLog{" +
                "dataId=" + dataId +
                ", deviceId=" + deviceId +
                ", deviceData='" + deviceData + '\'' +
                ", deviceState=" + deviceState +
                ", deviceCode='" + deviceCode + '\'' +
                '}';
    }
}
